package com.example.gisapplication;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.esri.arcgisruntime.geometry.Envelope;
import com.esri.arcgisruntime.geometry.Point;
import com.esri.arcgisruntime.geometry.PointCollection;
import com.esri.arcgisruntime.geometry.Polygon;
import com.esri.arcgisruntime.geometry.Polyline;
import com.esri.arcgisruntime.geometry.SpatialReferences;
import com.esri.arcgisruntime.layers.ArcGISVectorTiledLayer;
import com.esri.arcgisruntime.mapping.ArcGISMap;
import com.esri.arcgisruntime.mapping.Basemap;
import com.esri.arcgisruntime.mapping.BasemapStyle;
import com.esri.arcgisruntime.mapping.Viewpoint;
import com.esri.arcgisruntime.mapping.view.Graphic;
import com.esri.arcgisruntime.mapping.view.GraphicsOverlay;
import com.esri.arcgisruntime.mapping.view.MapView;
import com.esri.arcgisruntime.portal.Portal;
import com.esri.arcgisruntime.portal.PortalItem;
import com.esri.arcgisruntime.symbology.SimpleFillSymbol;
import com.esri.arcgisruntime.symbology.SimpleLineSymbol;
import com.esri.arcgisruntime.symbology.SimpleMarkerSymbol;

public class MainActivity extends AppCompatActivity {

    MapView mapView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mapView = findViewById(R.id.mapView);

//        ArcGISRuntimeEnvironment.setApiKey("AAPK0ab150e1d9bc46068e843c65d3f4f9de3zFj504-cixyq2tOkn451NKj_3lzvVrM5-QY6-SZn2ulWmkW1Ec-gJSlaPpdWEqQ");

//        displayMap();
//        displayWebMap();
//        displayInnerMap();

//        drawPoint();
//        drawLine();
//        drawPolygon();
//        startActivity(new Intent(this, LayersActivity.class));

        //UniqueValueRenderer表示具有匹配属性的功能
//        startActivity(new Intent(this, GraphicsOverlayActivity.class));


        startActivity(new Intent(this, GraphicsOverlayActivity.class));

    }


}